export function CountReducer(state = { count: 0, token: '' }, action) {
  switch (action.type) {
    case 'INCREMENT':
      return { count: state.count + action.payload };

    case 'DECREMENT':
      return { count: state.count - action.payload };

    // 增加token;
    case 'TOKEN':
      return { ...state, token: action.payload }
    default:
      return state;
  }
}